/*
 * @Author: blak-kong
 * @Date: 2019-12-04 16:01:37
 * @Email: 546598185@qq.com
 */

const router = require('koa-router')()
router.prefix('/api/slideshow')

// controller
const controller = require("../controller")

// @route  POST api/users/register
// @desc   返回的请求的json数据
// @access public
router.get('/test', async (ctx, next) => {
  ctx.body = "hello slideshow!"
})
.get('/', controller.slideshow.query)
// .post('/add', controller.slideshow.add)
.post('/update/:id', controller.slideshow.update)
.delete('/delete/:id', controller.slideshow.delete)
module.exports = router;
